package mobile.vo;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;

/**
 * 用户信息
 * @author zhiyuan
 * @version v1.0
 * @since 2016年12月6日 下午11:35:36
 */
public class UserInfo {
	
	private final static DecimalFormat df = new DecimalFormat("##0.00");

	//本金
	private String deposit;
	//佣金收益
	private String ingot;
	
	//等商家发放佣金
	private String unreceivedRewardIngot;
	
	//冰结金币
	private String lockedIngot;
	
	//待付款
	private String waitPay;
	
	//待收货
	private String waitRecevie;
	
	//待返款
	private String waitRefund;
	
	public String payPassword;
	
	public String nick;
	public Long id;
	public Date dueTime;
	public boolean isNew;

	public String getDeposit() {
		return deposit;
	}
	
	public void setDeposit(Long ldeposit) {
		if(ldeposit==null){
			this.deposit = "0.00";
		}else{
			this.deposit = df.format((double)ldeposit/100);
		}
	}

	public String getIngot() {
		return ingot;
	}

	public void setIngot(Long lingot) {
		if(lingot==null){
			this.ingot = "0.00";
		}else{
			this.ingot = df.format((double)lingot/100);
		}
	}

	public String getUnreceivedRewardIngot() {
		return unreceivedRewardIngot;
	}

	public void setUnreceivedRewardIngot(Long lunreceivedRewardIngot) {
		if(lunreceivedRewardIngot==null){
			this.unreceivedRewardIngot = "0.00";
		}else{
			this.unreceivedRewardIngot = df.format((double)lunreceivedRewardIngot/100);
		}
	}

	public String getLockedIngot() {
		return lockedIngot;
	}

	public void setLockedIngot(Long llockedIngot) {
		if(llockedIngot==null){
			this.lockedIngot = "0.00";
		}else{
			this.lockedIngot = df.format((double)llockedIngot/100);
		}
	}

	public String getWaitPay() {
		return waitPay;
	}

	public void setWaitPay(int iwaitPay) {
		this.waitPay = String.valueOf(iwaitPay);
	}

	public String getWaitRecevie() {
		return waitRecevie;
	}

	public void setWaitRecevie(int iwaitRecevie) {
		this.waitRecevie = String.valueOf(iwaitRecevie);
	}

	public String getWaitRefund() {
		return waitRefund;
	}

	public void setWaitRefund(int iwaitRefund) {
		this.waitRefund = String.valueOf(iwaitRefund);
	}
	
	
	
}
